﻿<BaseControl:DialogControl x:Class="jSLApp.Client.Forms.NewMessage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:BaseControl="clr-namespace:jSLCore.Client.Presentation.BaseControl;assembly=jSLCore.Client.Presentation" xmlns:Controls="clr-namespace:jSLCore.Client.Presentation.Controls;assembly=jSLCore.Client.Presentation" xmlns:tk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" xmlns:RichNotepad="clr-namespace:RichNotepad;assembly=RichNotepad" xmlns:jBinding="clr-namespace:jSLCore.Client.Presentation.jBinding;assembly=jSLCore.Client.Presentation" xmlns:BaseValidationRules="clr-namespace:jSLCore.Client.Presentation.jBinding.BaseValidationRules;assembly=jSLCore.Client.Presentation" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Width="600"  Height="600">
    <Controls:ImageGroupBox Header="Создание сообщения">
        <tk:DockPanel LastChildFill="True">
        <Controls:LeftHeaderContainer Header="Кому:" tk:DockPanel.Dock="Top">
                <HyperlinkButton Name="recLink"  Content="Указать получателя" Click="pointTo_Recepient">
                    <BaseControl:BaseControl.jBinding>
                        <jBinding:jNullContextBinding ElementPropertyPath="Tag">
                            <BaseValidationRules:jNotNullRule ErrorText="Необходимо указать адресата"/>
                        </jBinding:jNullContextBinding>
                    </BaseControl:BaseControl.jBinding>
                </HyperlinkButton>
            </Controls:LeftHeaderContainer>
            <TextBlock Text="Содержание:" tk:DockPanel.Dock="Top"/>
            <RichNotepad:CodeProjectRichTextBox x:Name="txt" />
        </tk:DockPanel>
    </Controls:ImageGroupBox>
</BaseControl:DialogControl>
